package cn.itsource.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Data
@Document(collection = "t_Employee")
public class Employee {
    @Id
    private String _id;
    private Long id;
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long logininfoId;
    //当前所属角色ID - 前端修改时做回显
    private List<Long> myRoles = new ArrayList<>();
    //当前所属角色名称 - 前端修改时做回显
    private List<String> roles = new ArrayList<>();
}
